// // import { StrictMode } from 'react'
// import { createRoot } from 'react-dom/client'
// import './index.css'
// import App from './App.tsx'
// import './tailwind.css'
// import { legacyLogicalPropertiesTransformer, StyleProvider } from '@ant-design/cssinjs';

// createRoot(document.getElementById('root')!).render(
//   // <StrictMode>
//   // <StyleProvider hashPriority="high" transformers={[legacyLogicalPropertiesTransformer]}>
//     <App />
//   // </StyleProvider>
//   // </StrictMode>,
// )
import React from 'react'
import ReactDOM from 'react-dom/client'
import { RouterProvider } from 'react-router'
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
import { ConfigProvider } from 'antd'
import zhCN from 'antd/locale/zh_CN'
import { router } from '@/router'

const queryClient = new QueryClient()

ReactDOM.createRoot(document.getElementById('root')!).render(
  <React.StrictMode>
    <QueryClientProvider client={queryClient}>
      <ConfigProvider locale={zhCN}>
        <RouterProvider router={router} />
      </ConfigProvider>
    </QueryClientProvider>
  </React.StrictMode>
)